﻿using Ay.MvcFramework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
/// <summary>
/// 围岩移动
/// </summary>
namespace MPSystem.Models
{
    public class BasicDataSet_SystemModel_WYYD : Model
    {

        private WYYD _WYYD;

        /// <summary>
        /// 围岩移动
        /// </summary>
        public WYYD WYYD
        {
            get { return _WYYD; }
            set { Set(ref _WYYD, value); }
        }

        public CommonSystem _CommonSystem;
        /// <summary>
        /// 可以共享的字段集合
        /// </summary>
        public CommonSystem CommonSystem
        {
            get { return _CommonSystem; }
            set { Set(ref _CommonSystem, value); }
        }


    }

    /// <summary>
    /// 围岩移动--左边
    /// </summary>
    public class WYYD_Left : AyPropertyChanged
    {
        private int _cqbh = -1;
        private int _xdbh = -1;
        private int _cgqksbh;
        private int _cgqzzbh;
        
        private int _alarmvalue;
        private int _totalsum;
        private string _writecyc;
        private string _cgqlx="LC";
        private float _qmjdw;
        private bool _alarmsound;
        private bool _alarmphone;
        private float _bzyl;
        private int _ID;

        /// <summary>
        /// 类型：LC,顶板离层；XC，顶板下沉
        /// </summary>
        public string CGQLX
        {
            get { return _cgqlx; }
            set { Set(ref _cgqlx, value); }
        }

        /// <summary>
        /// 测试区域
        /// </summary>
        public int CQBH
        {
            get { return _cqbh; }
            set { Set(ref _cqbh, value); }
        }

        /// <summary>
        /// 巷道编号
        /// </summary>
        public int XDBH
        {
            get { return _xdbh; }
            set { Set(ref _xdbh, value); }
        }

        /// <summary>
        ///传感器开始编号
        /// </summary>
        public int CGQQSBH
        {
            get { return _cgqksbh; }
            set { Set(ref _cgqksbh, value); }
        }
        /// <summary>
        /// 传感器终止编号
        /// </summary>
        public int CGQZZBH
        {
            get { return _cgqzzbh; }
            set { Set(ref _cgqzzbh, value); }
        }

        /// <summary>
        ///位移警报值
        /// </summary>
        public int WYBJZ
        {
            get { return _alarmvalue; }
            set { Set(ref _alarmvalue, value); }
        }
        /// <summary>
        /// 速度报警值
        /// </summary>
        public int SDBJZ
        {
            get { return _totalsum; }
            set { Set(ref _totalsum, value); }
        }
        /// <summary>
        /// 记录周期
        /// </summary>
        public string SJJLZQ
        {
            get { return _writecyc; }
            set { Set(ref _writecyc, value); }
        }
        
        /// <summary>
        /// 切煤机定位
        /// </summary>
        public float Qmjdw
        {
            get { return _qmjdw; }
            set { Set(ref _qmjdw, value); }
        }
        /// <summary>
        /// 声音报警
        /// </summary>
        public bool WAVEBJ
        {
            get { return _alarmsound; }
            set { Set(ref _alarmsound, value); }
        }
        /// <summary>
        /// 手机报警
        /// </summary>
        public bool DXBJ
        {
            get { return _alarmphone; }
            set { Set(ref _alarmphone, value); }
        }

        public int ID { get => _ID; set => _ID = value; }
        public bool IsLC
        {
            get { return _cgqlx=="LC"; }
            set { Set(ref _cgqlx, value?"LC":"XC"); }
        }
        public bool IsXC
        {
            get { return _cgqlx != "LC"; }
            set { Set(ref _cgqlx, !value ? "LC" : "XC"); }
        }
    }
    /// <summary>
    /// 围岩移动--右边
    /// </summary>
    public class WYYD_Right : AyTableViewRowModel
    {
        private int _xdbh;
        private int _cgqbh;
        private double _A;
        private double _B;
        private string _wz;
        private int _zt = -1;
        private string _lx;

        /// <summary>
        /// 巷道
        /// </summary>
        public int XDBH { get => _xdbh; set => Set(ref _xdbh,value); }
        /// <summary>
        /// 传感器
        /// </summary>
        public int CGQBH { get => _cgqbh; set => Set(ref _cgqbh, value); }
        /// <summary>
        /// 类型
        /// </summary>
        public string CGQLX { get => _lx; set => Set(ref _lx, value); }
        /// <summary>
        /// 位置
        /// </summary>
        public string CGQWZ { get => _wz; set => Set(ref _wz, value); }
        public double AJDSD { get => _A; set => Set(ref _A, value); }
        /// <summary>
        ///B基点深度
        /// </summary>
        public double BJDSD { get => _B; set => Set(ref _B, value); }

        public int SYZT { get => _zt; set => Set(ref _zt, value); }

    }
    /// <summary>
    /// 围岩移动--下面
    /// </summary>
    public class WYYD_Bottom : AyTableViewRowModel
    {
        private int _cqbh = -1;
        private string _cqmc;
        private int _xdbh = -1;
        private string _xdmc;
        private int _cgqksbh;
        private int _cgqzzbh;

        private int _alarmvalue;
        private int _totalsum;
        private string _writecyc;
        private string _selecttype;
        private float _qmjdw;
        private bool _alarmsound;
        private bool _alarmphone;
        private float _bzyl;
        private int _ID;

        /// <summary>
        /// 测区编号
        /// </summary>
        public int CQBH
        {
            get { return _cqbh; }
            set { Set(ref _cqbh, value); }
        }
        /// <summary>
        /// 测区名称
        /// </summary>
        public string CQMC
        {
            get { return _cqmc; }
            set { Set(ref _cqmc, value); }
        }
        /// <summary>
        /// 巷道编号
        /// </summary>
        public int XDBH
        {
            get { return _xdbh; }
            set { Set(ref _xdbh, value); }
        }

        /// <summary>
        /// 巷道名称
        /// </summary>
        public string XDMC
        {
            get { return _xdmc; }
            set { Set(ref _xdmc, value); }
        }

        /// <summary>
        ///传感器开始编号
        /// </summary>
        public int CGQQSBH
        {
            get { return _cgqksbh; }
            set { Set(ref _cgqksbh, value); }
        }
        /// <summary>
        /// 传感器终止编号
        /// </summary>
        public int CGQZZBH
        {
            get { return _cgqzzbh; }
            set { Set(ref _cgqzzbh, value); }
        }

        /// <summary>
        ///位移警报值
        /// </summary>
        public int WYBJZ
        {
            get { return _alarmvalue; }
            set { Set(ref _alarmvalue, value); }
        }
        /// <summary>
        /// 速度报警值
        /// </summary>
        public int SDBJZ
        {
            get { return _totalsum; }
            set { Set(ref _totalsum, value); }
        }
        /// <summary>
        /// 记录周期
        /// </summary>
        public string SJJLZQ
        {
            get { return _writecyc; }
            set { Set(ref _writecyc, value); }
        }
        /// <summary>
        /// 类型：LC,顶板离层；XC，顶板下沉
        /// </summary>
        public string CGQLX
        {
            get { return _selecttype; }
            set { Set(ref _selecttype, value); }
        }
        /// <summary>
        /// 切煤机定位
        /// </summary>
        public float Qmjdw
        {
            get { return _qmjdw; }
            set { Set(ref _qmjdw, value); }
        }
        /// <summary>
        /// 声音报警
        /// </summary>
        public bool WAVEBJ
        {
            get { return _alarmsound; }
            set { Set(ref _alarmsound, value); }
        }
        /// <summary>
        /// 手机报警
        /// </summary>
        public bool DXBJ
        {
            get { return _alarmphone; }
            set { Set(ref _alarmphone, value); }
        }

        public int ID { get => _ID; set => _ID = value; }
        
    }
}
